package org.lmj.dos.common.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;


@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@Entity
public class ProductDetail implements Serializable {

    private static final long serialVersionUID = 1L;
    private  String imageHost;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    private int categoryId;

    private String name;

    private String subtitle;

    private String mainImage;

    private String subImages;

    private String detail;

    private double price;

    private Integer stock;

    private Integer status;

    private String createTime;

    private String updateTime;

    private Long parentCategoryId;
}
